package cn.example.vip.mall.goods.service;

import cn.example.vip.mall.goods.entity.Category;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CategoryService extends IService<Category> {
	/**
	 * 条件查询
	 * @param category
	 * @return
	 */
	List<Category> queryList(Category category);
	
	/**
	 * 分页条件查询
	 * @param category
	 * @param page
	 * @param size
	 * @return
	 */
	Page<Category> queryPageList(Category category, Long page, Long size);
	
	/**
	 * 根据 parentId 查询
	 * @param parentId
	 * @return
	 */
	List<Category> findByParentId(Integer parentId);
	
}







